<?php
/**
 * MapController.php
 *
 * @copyright   2023 thingsworld.com.cn - All Rights Reserved
 * @link        http://thingsworld.com.cn/
 * @author      stiffer.chen <chenl@thingsworld.com.cn>
 * @created     2023-04-18 14:19:32
 * @modified    2023-04-18 14:19:32
 *
 */

namespace App\Http\Controllers;

use App\Services\MapService;

class MapController extends BaseController
{
    public function china()
    {
        try {
            return response()->json((new MapService())->china());
        } catch (\Exception $e) {
            return message($e->getMessage(), false);
        }
    }

    public function world()
    {
        try {
            return response()->json((new MapService())->world());
        } catch (\Exception $e) {
            return message($e->getMessage(), false);
        }
    }
}